<!DOCTYPE html>
<html lang="en" xmlns:v-on="http://www.w3.org/1999/xhtml">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta http-equiv="X-UA-Compatible" content="ie=edge">

  <title>lable</title>
  <script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script>
</head>
<body>
<!--for-->
<div id="forr">
<p v-for="item in forxh">{{item}}</p>

<!--if,else,else if-->
  <p v-if="yif>ssss">
    没问题兄弟
  </p>
  <p v-else if="yif>0">
    好吧第二个条件成立
  </p>
<p v-else>
这是条件不成立了
</p>
</div>
</body>
<script>
  var bili=new Vue({
    el: "#forr",
    data(){
      return{
        forxh: ["lisi","sads","sda"],
        yif: 10,
        ssss: 100
      }
    }
  })

</script>
</html>